package chan.project.model.dto.travelPlan;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Address {
    private String country;
    private String formatted_address;
    private String city;
    private String adcode;
    private String level;
    private Building building = new Building(); // 初始化
    private List<String> number = new ArrayList<>(); // 初始化
    private String province;
    private String citycode;
    private List<String> street = new ArrayList<>(); // 初始化
    private String district;
    private String location;
    private Neighborhood neighborhood = new Neighborhood(); // 初始化
    private List<String> township = new ArrayList<>(); // 初始化

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Building {
        private List<String> name = new ArrayList<>(); // 初始化
        private List<String> type = new ArrayList<>(); // 初始化
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Neighborhood {
        private List<String> name = new ArrayList<>(); // 初始化
        private List<String> type = new ArrayList<>(); // 初始化
    }

}